/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.dto.borrow;

import com.fuyao.cloud.common.data.mybatis.SearchCondition;
import com.fuyao.cloud.common.data.mybatis.SearchOp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 借用&归还表
 *
 * @author ly
 * @date 2022-01-06 10:37:40
 */
@Data
public class BorrowSearchDTO {

	@SearchCondition
	@ApiModelProperty(value="状态：默认为0{0:已生效，1:审批中，2:待签字，3:已驳回}")
	private String status;

	@SearchCondition
	@ApiModelProperty(value = "默认为0{0：借用、1：归还}")
	private String type;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "单号")
	private String caseid;

	@SearchCondition(op = SearchOp.BETWEEN)
	@ApiModelProperty(value = "借用时间")
	private List<LocalDate> borrowTime;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "借用人")
	private String borrowName;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "预计归还时间")
	private List<LocalDate> forecastRemandTime;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "实际归还时间")
	private List<LocalDate> realRemandTime;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "说明")
	private String explains;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value="订单明细")
	private String detailed;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value="创建人")
	private String createBy;

	// 这里跳过在xml文件手动拼接条件语句
	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产名称")
	private String cardName;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产编码")
	private String cardCode;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "商品条码")
	private String barcode;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产编码")
	private String model;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "入库单价")
	private String amount;
}
